<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcss.com/jquery/1.10.2/jquery.min.js">
    </script>
    <script>
        $(document).ready(function(){

                $.getJSON("/user/getUserInfo/", function(json){
                    //alert("JSON Data: " + json);
                    alert("JSON Data: " + json.name);
                    $("#tname").val(json.name);

                    // $.each(json.users, function(i,item){
                    //     // alert(item.name);
                    //     $("#tUsers").append("<tr><td><input type='radio' class='r1'></td><td>"+item.id+"</td><td>"+item.name+"</td><td>"+item.clazz+"</td></tr>");
                    // });

                });

        });
    </script>
</head>
<body>
<h1>this is login</h1>
<input type="text" id="tname"/>
</body>
</html>